package com.tron.dobest.java.tronio;

import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class TronFileOutputStream {
    public static void main(String[] args) throws IOException {
        try (FileOutputStream outputStream = new FileOutputStream("src/main/java/com/tron/dobest/java/tronio/hello.txt")) {
            String data = "中文字符abc123，不知道有多长，但是输出流应该能一次写入所有的数据。";
            outputStream.write(data.getBytes(StandardCharsets.UTF_8));
        }
    }
}
